<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: sw::List&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('classsw_1_1_list.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="classsw_1_1_list-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">sw::List&lt; T &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>列表类，内部维护了一个指向std::vector的智能指针  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_list_8h_source.html">List.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad84dc17e0d073e18e2f44871c27025de" id="r_ad84dc17e0d073e18e2f44871c27025de"><td class="memItemLeft" align="right" valign="top"><a id="ad84dc17e0d073e18e2f44871c27025de" name="ad84dc17e0d073e18e2f44871c27025de"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>List</b> ()</td></tr>
<tr class="memdesc:ad84dc17e0d073e18e2f44871c27025de"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化列表 <br /></td></tr>
<tr class="separator:ad84dc17e0d073e18e2f44871c27025de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfff18bc7387d154bc89481259f847a0" id="r_abfff18bc7387d154bc89481259f847a0"><td class="memItemLeft" align="right" valign="top"><a id="abfff18bc7387d154bc89481259f847a0" name="abfff18bc7387d154bc89481259f847a0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>List</b> (std::initializer_list&lt; T &gt; <a class="el" href="classsw_1_1_dictionary.html">list</a>)</td></tr>
<tr class="memdesc:abfff18bc7387d154bc89481259f847a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用初始化列表 <br /></td></tr>
<tr class="separator:abfff18bc7387d154bc89481259f847a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e4501c96b9e786d67b420312cafb8cc" id="r_a4e4501c96b9e786d67b420312cafb8cc"><td class="memItemLeft" align="right" valign="top"><a id="a4e4501c96b9e786d67b420312cafb8cc" name="a4e4501c96b9e786d67b420312cafb8cc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>List</b> (<a class="el" href="classsw_1_1_dictionary.html">int</a> <a class="el" href="classsw_1_1_dictionary.html">capacity</a>)</td></tr>
<tr class="memdesc:a4e4501c96b9e786d67b420312cafb8cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化列表并指定容量 <br /></td></tr>
<tr class="separator:a4e4501c96b9e786d67b420312cafb8cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39b94e22ea344de135667df991fbbe11" id="r_a39b94e22ea344de135667df991fbbe11"><td class="memItemLeft" align="right" valign="top"><a id="a39b94e22ea344de135667df991fbbe11" name="a39b94e22ea344de135667df991fbbe11"></a>
<a class="el" href="classsw_1_1_dictionary.html">auto</a>&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a39b94e22ea344de135667df991fbbe11"><td class="mdescLeft">&#160;</td><td class="mdescRight">正向迭代器开始 <br /></td></tr>
<tr class="separator:a39b94e22ea344de135667df991fbbe11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9630ceee45943beca3b53931b7864095" id="r_a9630ceee45943beca3b53931b7864095"><td class="memItemLeft" align="right" valign="top"><a id="a9630ceee45943beca3b53931b7864095" name="a9630ceee45943beca3b53931b7864095"></a>
<a class="el" href="classsw_1_1_dictionary.html">auto</a>&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a9630ceee45943beca3b53931b7864095"><td class="mdescLeft">&#160;</td><td class="mdescRight">正向迭代器结束 <br /></td></tr>
<tr class="separator:a9630ceee45943beca3b53931b7864095"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d1e8dcbb8c1b4ba128cb011ee401f3a" id="r_a5d1e8dcbb8c1b4ba128cb011ee401f3a"><td class="memItemLeft" align="right" valign="top"><a id="a5d1e8dcbb8c1b4ba128cb011ee401f3a" name="a5d1e8dcbb8c1b4ba128cb011ee401f3a"></a>
<a class="el" href="classsw_1_1_dictionary.html">auto</a>&#160;</td><td class="memItemRight" valign="bottom"><b>rbegin</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a5d1e8dcbb8c1b4ba128cb011ee401f3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">反向迭代器开始 <br /></td></tr>
<tr class="separator:a5d1e8dcbb8c1b4ba128cb011ee401f3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a926521f6a537069d6e398306b9f870fb" id="r_a926521f6a537069d6e398306b9f870fb"><td class="memItemLeft" align="right" valign="top"><a id="a926521f6a537069d6e398306b9f870fb" name="a926521f6a537069d6e398306b9f870fb"></a>
<a class="el" href="classsw_1_1_dictionary.html">auto</a>&#160;</td><td class="memItemRight" valign="bottom"><b>rend</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a926521f6a537069d6e398306b9f870fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">反向迭代器结束 <br /></td></tr>
<tr class="separator:a926521f6a537069d6e398306b9f870fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e16552c6690d1c808646c4232dd992" id="r_a56e16552c6690d1c808646c4232dd992"><td class="memItemLeft" align="right" valign="top"><a id="a56e16552c6690d1c808646c4232dd992" name="a56e16552c6690d1c808646c4232dd992"></a>
<a class="el" href="classsw_1_1_dictionary.html">auto</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (<a class="el" href="classsw_1_1_dictionary.html">int</a> index) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a56e16552c6690d1c808646c4232dd992"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取或设置列表中指定位置的值 <br /></td></tr>
<tr class="separator:a56e16552c6690d1c808646c4232dd992"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6998243269a9ad3bc5f4c9bdb6d90f99" id="r_a6998243269a9ad3bc5f4c9bdb6d90f99"><td class="memItemLeft" align="right" valign="top"><a id="a6998243269a9ad3bc5f4c9bdb6d90f99" name="a6998243269a9ad3bc5f4c9bdb6d90f99"></a>
<a class="el" href="classsw_1_1_dictionary.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Capacity</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a6998243269a9ad3bc5f4c9bdb6d90f99"><td class="mdescLeft">&#160;</td><td class="mdescRight">列表当前的容量 <br /></td></tr>
<tr class="separator:a6998243269a9ad3bc5f4c9bdb6d90f99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac06d9081e817d6c808453928dd33525a" id="r_ac06d9081e817d6c808453928dd33525a"><td class="memItemLeft" align="right" valign="top"><a id="ac06d9081e817d6c808453928dd33525a" name="ac06d9081e817d6c808453928dd33525a"></a>
<a class="el" href="classsw_1_1_dictionary.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Count</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:ac06d9081e817d6c808453928dd33525a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取元素个数 <br /></td></tr>
<tr class="separator:ac06d9081e817d6c808453928dd33525a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed38231dffce414f40d272aba6e7099c" id="r_aed38231dffce414f40d272aba6e7099c"><td class="memItemLeft" align="right" valign="top"><a id="aed38231dffce414f40d272aba6e7099c" name="aed38231dffce414f40d272aba6e7099c"></a>
<a class="el" href="classsw_1_1_dictionary.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>IsEmpty</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:aed38231dffce414f40d272aba6e7099c"><td class="mdescLeft">&#160;</td><td class="mdescRight">列表是否为空 <br /></td></tr>
<tr class="separator:aed38231dffce414f40d272aba6e7099c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa14a40283db35522ff884cd737762720" id="r_aa14a40283db35522ff884cd737762720"><td class="memItemLeft" align="right" valign="top"><a id="aa14a40283db35522ff884cd737762720" name="aa14a40283db35522ff884cd737762720"></a>
<a class="el" href="classsw_1_1_dictionary.html">auto</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>Append</b> (<a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;<a class="el" href="classsw_1_1_dictionary.html">value</a>) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:aa14a40283db35522ff884cd737762720"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个值到列表末尾 <br /></td></tr>
<tr class="separator:aa14a40283db35522ff884cd737762720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68c7aaae99a0e18274de59cad82c5743" id="r_a68c7aaae99a0e18274de59cad82c5743"><td class="memItemLeft" align="right" valign="top"><a id="a68c7aaae99a0e18274de59cad82c5743" name="a68c7aaae99a0e18274de59cad82c5743"></a>
<a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Insert</b> (<a class="el" href="classsw_1_1_dictionary.html">int</a> index, <a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;<a class="el" href="classsw_1_1_dictionary.html">value</a>) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a68c7aaae99a0e18274de59cad82c5743"><td class="mdescLeft">&#160;</td><td class="mdescRight">在指定位置插入值 <br /></td></tr>
<tr class="separator:a68c7aaae99a0e18274de59cad82c5743"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a459de7b71327cf474c1ac24909b49773" id="r_a459de7b71327cf474c1ac24909b49773"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a459de7b71327cf474c1ac24909b49773">Contains</a> (<a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;<a class="el" href="classsw_1_1_dictionary.html">value</a>) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a459de7b71327cf474c1ac24909b49773"><td class="mdescLeft">&#160;</td><td class="mdescRight">列表是否包含某个值  <br /></td></tr>
<tr class="separator:a459de7b71327cf474c1ac24909b49773"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53adb5e4e7172f03bf87113443e9d2b5" id="r_a53adb5e4e7172f03bf87113443e9d2b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a53adb5e4e7172f03bf87113443e9d2b5">IndexOf</a> (<a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;<a class="el" href="classsw_1_1_dictionary.html">value</a>) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a53adb5e4e7172f03bf87113443e9d2b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找值在列表中的索引  <br /></td></tr>
<tr class="separator:a53adb5e4e7172f03bf87113443e9d2b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0f77fc0d146ee739725da4cc337bbe4" id="r_ae0f77fc0d146ee739725da4cc337bbe4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae0f77fc0d146ee739725da4cc337bbe4">Remove</a> (<a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;<a class="el" href="classsw_1_1_dictionary.html">value</a>) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:ae0f77fc0d146ee739725da4cc337bbe4"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除列表中第一个指定的值  <br /></td></tr>
<tr class="separator:ae0f77fc0d146ee739725da4cc337bbe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61b8b974966080702d94323ef0e46f85" id="r_a61b8b974966080702d94323ef0e46f85"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a61b8b974966080702d94323ef0e46f85">RemoveAt</a> (<a class="el" href="classsw_1_1_dictionary.html">int</a> index) <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a61b8b974966080702d94323ef0e46f85"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除指定索引处的值  <br /></td></tr>
<tr class="separator:a61b8b974966080702d94323ef0e46f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a9a3e947b9591f2a0e7fde6fb2ac9a8" id="r_a9a9a3e947b9591f2a0e7fde6fb2ac9a8"><td class="memItemLeft" align="right" valign="top"><a id="a9a9a3e947b9591f2a0e7fde6fb2ac9a8" name="a9a9a3e947b9591f2a0e7fde6fb2ac9a8"></a>
<a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Clear</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a9a9a3e947b9591f2a0e7fde6fb2ac9a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空列表 <br /></td></tr>
<tr class="separator:a9a9a3e947b9591f2a0e7fde6fb2ac9a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a765086d760ea625121500730a2579d28" id="r_a765086d760ea625121500730a2579d28"><td class="memItemLeft" align="right" valign="top"><a id="a765086d760ea625121500730a2579d28" name="a765086d760ea625121500730a2579d28"></a>
<a class="el" href="classsw_1_1_list.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Copy</b> () <a class="el" href="classsw_1_1_dictionary.html">const</a></td></tr>
<tr class="memdesc:a765086d760ea625121500730a2579d28"><td class="mdescLeft">&#160;</td><td class="mdescRight">复制当前列表 <br /></td></tr>
<tr class="separator:a765086d760ea625121500730a2579d28"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a6c5f217b25ad01a2af3b311520bcfc8e" id="r_a6c5f217b25ad01a2af3b311520bcfc8e"><td class="memItemLeft" align="right" valign="top"><a id="a6c5f217b25ad01a2af3b311520bcfc8e" name="a6c5f217b25ad01a2af3b311520bcfc8e"></a>
<a class="el" href="classsw_1_1_dictionary.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (<a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="classsw_1_1_list.html">List</a> &amp;left, <a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="classsw_1_1_list.html">List</a> &amp;right)</td></tr>
<tr class="memdesc:a6c5f217b25ad01a2af3b311520bcfc8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否为同一个列表 <br /></td></tr>
<tr class="separator:a6c5f217b25ad01a2af3b311520bcfc8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3818bbafce8936cc4a4f7a43dc163aa" id="r_ab3818bbafce8936cc4a4f7a43dc163aa"><td class="memItemLeft" align="right" valign="top"><a id="ab3818bbafce8936cc4a4f7a43dc163aa" name="ab3818bbafce8936cc4a4f7a43dc163aa"></a>
<a class="el" href="classsw_1_1_dictionary.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (<a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="classsw_1_1_list.html">List</a> &amp;left, <a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="classsw_1_1_list.html">List</a> &amp;right)</td></tr>
<tr class="memdesc:ab3818bbafce8936cc4a4f7a43dc163aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否不是同一个列表 <br /></td></tr>
<tr class="separator:ab3818bbafce8936cc4a4f7a43dc163aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab50f6f7c37c3c4649e332d596d5bda2f" id="r_ab50f6f7c37c3c4649e332d596d5bda2f"><td class="memItemLeft" align="right" valign="top"><a id="ab50f6f7c37c3c4649e332d596d5bda2f" name="ab50f6f7c37c3c4649e332d596d5bda2f"></a>
std::wostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;&lt;</b> (std::wostream &amp;<a class="el" href="classsw_1_1_dictionary.html">wos</a>, <a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="classsw_1_1_list.html">List</a> &amp;<a class="el" href="classsw_1_1_dictionary.html">list</a>)</td></tr>
<tr class="memdesc:ab50f6f7c37c3c4649e332d596d5bda2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">支持Utils::BuildStr <br /></td></tr>
<tr class="separator:ab50f6f7c37c3c4649e332d596d5bda2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;<a class="el" href="classsw_1_1_dictionary.html">typename</a> T&gt;<br />
class sw::List&lt; T &gt;</div><p>列表类，内部维护了一个指向std::vector的智能指针 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a459de7b71327cf474c1ac24909b49773" name="a459de7b71327cf474c1ac24909b49773"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a459de7b71327cf474c1ac24909b49773">&#9670;&#160;</a></span>Contains()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;<a class="el" href="classsw_1_1_dictionary.html">typename</a> T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">bool</a> <a class="el" href="classsw_1_1_list.html">sw::List</a>&lt; T &gt;::Contains </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;</td>          <td class="paramname"><span class="paramname"><em>value</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>列表是否包含某个值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要查找的值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a53adb5e4e7172f03bf87113443e9d2b5" name="a53adb5e4e7172f03bf87113443e9d2b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53adb5e4e7172f03bf87113443e9d2b5">&#9670;&#160;</a></span>IndexOf()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;<a class="el" href="classsw_1_1_dictionary.html">typename</a> T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">int</a> <a class="el" href="classsw_1_1_list.html">sw::List</a>&lt; T &gt;::IndexOf </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;</td>          <td class="paramname"><span class="paramname"><em>value</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>查找值在列表中的索引 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要查找的值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>若列表中包含该值则返回其索引，否则返回-1 </dd></dl>

</div>
</div>
<a id="ae0f77fc0d146ee739725da4cc337bbe4" name="ae0f77fc0d146ee739725da4cc337bbe4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0f77fc0d146ee739725da4cc337bbe4">&#9670;&#160;</a></span>Remove()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;<a class="el" href="classsw_1_1_dictionary.html">typename</a> T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">bool</a> <a class="el" href="classsw_1_1_list.html">sw::List</a>&lt; T &gt;::Remove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">const</a> T &amp;</td>          <td class="paramname"><span class="paramname"><em>value</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移除列表中第一个指定的值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>要移除的值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否成功移除 </dd></dl>

</div>
</div>
<a id="a61b8b974966080702d94323ef0e46f85" name="a61b8b974966080702d94323ef0e46f85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61b8b974966080702d94323ef0e46f85">&#9670;&#160;</a></span>RemoveAt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;<a class="el" href="classsw_1_1_dictionary.html">typename</a> T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">void</a> <a class="el" href="classsw_1_1_list.html">sw::List</a>&lt; T &gt;::RemoveAt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">int</a></td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移除指定索引处的值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>要移除元素的索引 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_list_8h_source.html">List.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>sw</b></li><li class="navelem"><a class="el" href="classsw_1_1_list.html">List</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
